#!/usr/bin/env groovy
// @file     OptionsMirrorTool
// @author   Mac Radigan
// @purpose  

package sys.finance

import sys.tools.*
import sys.finance.*
import sys.xml.*
import java.util.TimeZone
import static org.w3c.dom.Node.*

public class OptionsMirrorTool extends Tool {

  public String getName() {
    return "options-mirror"
  }

  public String getDescription() {
    return "Download options data."
  }

  public String run(String[] args) {
    def cli = new CliBuilder(usage: '${getName()} -s <symbol> [-h]')  
    cli.h(longOpt:'help', argName:'usage information', required:false, args:0, 'show usage information')  
    cli.s(longOpt:'symbol', argName:'symbol', required:true, args:1, 'symbol')  
    OptionAccessor opt = cli.parse(args); if(!opt) { return }  
    YahooOptionsClient.download(opt.s)
 }

}

/* *EOF* */
